@extends('layouts.master',['loading_word'=>'加载中'])
@section('title')
首页
@endsection
@section('all')
    {{--左下角广告开始--}}
    @include('widget.advert')
    {{--左下角广告结束--}}
    {{--logo 搜索开始--}}
    @include('widget.search')
    {{--logo 搜索结束--}}
    @include('widget.hall')
    {{--轮播图片开始--}}
    <div class="t-hall-container">
        <a class="t-hall-banner" href="#">
            <img src="/imgs/banner01.jpg">
        </a>
        <a class="t-hall-banner" href="#">
            <img src="/imgs/banner02.jpg">
        </a>
        <a class="t-hall-banner" href="#">
            <img src="/imgs/banner03.jpg">
        </a>
        <a class="t-hall-banner" href="#">
            <img src="/imgs/banner04.jpg">
        </a>
        <a class="t-hall-banner" href="#">
            <img src="/imgs/banner05.jpg">
        </a>
        <ul class="t-tabs">
            <li class="t-tab"></li>
            <li class="t-tab"></li>
            <li class="t-tab"></li>
            <li class="t-tab"></li>
            <li class="t-tab"></li>
        </ul>
    </div>
    {{--轮播图片结束--}}
@endsection
@section('content')
    {{--首页主体部分开始--}}
    <div id="i-wrap">
        <div class="t-content">
            <ul>
                @foreach($items as $item)
                    <li class="t-item t-item1">
                        <div class="t-title clearfix">
                            <h3>{{$item->name}}</h3>
                            <ul class="t-tab">
                                @foreach($item->getArea as $k=>$a)
                                    @if($k<3)
                                        <li><a href="">{{$a->name}}</a></li>
                                    @endif
                                @endforeach
                            </ul>
                        </div>
                        <div class="t-main clearfix">
                            <div class="t-m-left">
                                <a href="#">
                                    <img src="{{$item->cover}}" alt="">
                                </a>
                            </div>
                            <div class="t-m-right">
                                <ul class="t-on clearfix">
                                    @foreach($item->getArea as $j=>$s)
                                    @if($j==0)
                                        @foreach($s->getScene as $j=>$m)
                                            @if($j<4)
                                            <li>
                                                <div class="t-img">
                                                    <a href="/index.php/scene/{{$m->id}}">
                                                        <img src="{{$m->cover}}" alt="">
                                                    </a>
                                                    <p>{{mb_substr($m->intro,5,20)}}</p>
                                                </div>
                                                <div class="t-text">
                                                    <p><a href="#">{{$m->name}}</a></p>
                                                    <p class="t-price">￥<span>{{$m->price}}</span>起</p>
                                                    <p class="t-sold">浏览<span>{{$m->sum}}</span></p>
                                                </div>
                                            </li>
                                            @endif
                                        @endforeach
                                    @endif
                                    @endforeach
                                </ul>
                            </div>
                        </div>
                    </li>
                @endforeach
            </ul>
        </div>
    </div>
    {{--首页主体部分结束--}}
@endsection
